CoreGame<TInitialWorld, TWorldManager>ΒΆ
Warning
This documentation is for an implementation of a service. This class is not meant to be used directly; instead use the Protogame.CoreGame{TInitialWorld} service via dependency injection to access this functionality.
Information documented here may not be up to date.
-
class
CoreGame<TInitialWorld, TWorldManager>
: Game, System.IDisposable, Protogame.ICoreGame The implementation of Protogame’s base game class. In previous versions of Protogame, this acted as the base class for the developer’s Game class. However newer games written in Protogame should use T:Protogame.CoreGame`1 instead, as this correctly sets games to use the new render pipeline, which sets TWorldManager to be T:Protogame.RenderPipelineWorldManager automatically.
Type Parameters: - TInitialWorld – The initial world class to start the game with.
- TWorldManager – The world manager class for this game.
-
readonly IGameContext
GameContext
Gets the current game context. You should not generally access this property; outside an explicit Update or Render loop, the state of the game context is not guaranteed. Inside the context of an Update or Render loop, the game context is already provided.
Value: The current game context.
-
readonly IUpdateContext
UpdateContext
Gets the current update context. You should not generally access this property; outside an explicit Update loop, the state of the update context is not guaranteed. Inside the context of an Update loop, the update context is already provided.
Value: The current update context.
-
readonly IRenderContext
RenderContext
Gets the current render context. You should not generally access this property; outside an explicit Render loop, the state of the render context is not guaranteed. Inside the context of an Render loop, the render context is already provided.
Value: The current update context.
-
readonly Protogame.IGameWindow
Window
A platform independent representation of a game window.
Value: The game window.
-
readonly GraphicsDeviceManager
GraphicsDeviceManager
The graphics device manager used by the game.
Value: The graphics device manager.
-
int
SkipFrames
The number of frames to skip before updating or rendering.